//
//  BIDAddressBookCell.m
//  JuanChengOA
//
//  Created by mal on 2017/7/20.
//  Copyright © 2017年 mal. All rights reserved.
//

#import "BIDAddressBookCell.h"

@implementation BIDAddressBookCell
    @synthesize imgView;
    @synthesize nameLabel;
    @synthesize stepLevel;
    @synthesize stepWidth;
    @synthesize isPerson;

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
    
    - (void)setStepLevel:(NSUInteger)stepLevel1
    {
        stepLevel = stepLevel1;
        _leftForImgViewConstraint.constant = 16+stepLevel*stepWidth;
    }
    
    - (void)setStepWidth:(NSUInteger)stepWidth1
    {
       stepWidth = stepWidth1;
    }
    
    - (void)setIsPerson:(BOOL)isPerson1
    {
        isPerson = isPerson1;
        _widthForImgViewConstraint.constant = isPerson1 ? 0 : 18;
    }

@end
